import { request } from "../../utils/request";


export const get=()=>request.get<UI.Get[]>("/classroom/all")
export const remove=(id:number)=>request.get<null>(`/classroom/remove/${id}`)
export const add=(data:API.Classroom.Add)=>request.post<number>("/classroom/add", data)
export const update=(data:API.Classroom.Update)=>request.post<null>("/classroom/update", data)